//
//  XMSSelectCol.m
//  
//
//  Created by wjxfhxy on 16/5/25.
//
//

#import "XMSSelectCol.h"

@implementation XMSSelectCol

-(NSString*)description
{
    return [NSString stringWithFormat:@"%@,%@,%@",self.tablbeName,self.colName,self.asName];
}

+(instancetype)selectColWithColName:(NSString*)colName
{
    return [XMSSelectCol selectColWithTableName:@"" colName:colName];
}

+(instancetype)selectColWithTableName:(NSString*)tableName colName:(NSString*)colName
{
    return [XMSSelectCol selectColWithTableName:tableName colName:colName asName:@""];
}

+(instancetype)selectColWithTableName:(NSString*)tableName colName:(NSString*)colName asName:(NSString*)asName
{
    XMSSelectCol *s = [[XMSSelectCol new] autorelease_mm];
    s.colName = colName;
    s.tablbeName = tableName;
    s.asName = asName;
    
    return s;
}

@end
